package me.dan.alibabasdk.entity.trade.product;

import java.text.ParseException;
import java.util.Date;

import me.dan.alibabasdk.util.DateUtil;

/**
 * 商品详细信息
 * @author SRZ
 * @date 2020/09/04
 */
public class AlibabaOpenplatformProductModelProductInfo {

    /**
     * 商品ID
     */
    private Long productID;
    /**
     * 商品类型
     */
    private String productType;
    /**
     * 类目ID
     */
    private Long categoryID;
    /**
     * 商品属性和属性值
     */
    private AlibabaOpenplatformProductModelProductAttribute[] attributes;
    /**
     * 分组ID
     */
    private Long[] groupID;
    /**
     * 商品状态
     */
    private String status;
    /**
     * 商品标题
     */
    private String subject;
    /**
     * 商品详情描述
     */
    private String description;
    /**
     * 语种
     */
    private String language;
    /**
     * 信息有效期
     */
    private Integer periodOfValidity;
    /**
     * 业务逻辑
     */
    private Integer bizType;
    /**
     * 是否图片私密信息，国际站此字段无效（false）
     */
    private Boolean pictureAuth;
    /**
     * 商品主图
     */
    private AlibabaOpenplatformProductModelProductImageInfo image;
    /**
     * sku信息
     */
    private AlibabaOpenplatformProductModelProductSKUInfo[] skuInfos;
    /**
     * 商品销售信息
     */
    private AlibabaOpenplatformProductModelProductSaleInfo saleInfo;
    /**
     * 商品物流信息
     */
    private AlibabaOpenplatformProductModelProductShippingInfo shippingInfo;
    /**
     * 商品国际贸易信息，1688无需处理此字段
     */
    private AlibabaOpenplatformProductModelProductInternationalTradeInfo internationalTradeInfo;
    /**
     * 商品扩展信息
     */
    private AlibabaOpenplatformProductModelProductExtendInfo[] extendInfos;
    /**
     * 供应商用户ID
     */
    private String supplierUserId;
    /**
     * 质量星级(0-5
     */
    private Integer qualityLevel;
    /**
     * 供应商loginId
     */
    private String supplierLoginId;
    /**
     * 类目名
     */
    private String categoryName;
    /**
     * 主图视频播放地址
     */
    private String mainVedio;
    /**
     * 商品货号，产品属性中的货号
     */
    private String productCargoNumber;
    /**
     * 是否海外代发
     */
    private Boolean crossBorderOffer;
    /**
     * 参考价格
     */
    private String referencePrice;
    /**
     * 创建时间
     */
    private String createTime;
    /**
     * 最后操作时间
     */
    private String lastUpdateTime;
    /**
     * 过期时间
     */
    private String expireTime;
    /**
     * 修改时间
     */
    private String modifyTime;
    /**
     * 审核时间
     */
    private String approvedTime;
    /**
     * 最后重发时间
     */
    private String lastRepostTime;
    /**
     * 产品业务的支持信息,support为false说明不支持.
     */
    private AlibabaOpenplatformProductModelProductBizGroupInfo[] bizGroupInfos;

    public Long getProductID() {
        return productID;
    }

    public void setProductID(Long productID) {
        this.productID = productID;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public Long getCategoryID() {
        return categoryID;
    }

    public void setCategoryID(Long categoryID) {
        this.categoryID = categoryID;
    }

    public AlibabaOpenplatformProductModelProductAttribute[] getAttributes() {
        return attributes;
    }

    public void setAttributes(AlibabaOpenplatformProductModelProductAttribute[] attributes) {
        this.attributes = attributes;
    }

    public Long[] getGroupID() {
        return groupID;
    }

    public void setGroupID(Long[] groupID) {
        this.groupID = groupID;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public Integer getPeriodOfValidity() {
        return periodOfValidity;
    }

    public void setPeriodOfValidity(Integer periodOfValidity) {
        this.periodOfValidity = periodOfValidity;
    }

    public Integer getBizType() {
        return bizType;
    }

    public void setBizType(Integer bizType) {
        this.bizType = bizType;
    }

    public Boolean getPictureAuth() {
        return pictureAuth;
    }

    public void setPictureAuth(Boolean pictureAuth) {
        this.pictureAuth = pictureAuth;
    }

    public AlibabaOpenplatformProductModelProductImageInfo getImage() {
        return image;
    }

    public void setImage(AlibabaOpenplatformProductModelProductImageInfo image) {
        this.image = image;
    }

    public AlibabaOpenplatformProductModelProductSKUInfo[] getSkuInfos() {
        return skuInfos;
    }

    public void setSkuInfos(AlibabaOpenplatformProductModelProductSKUInfo[] skuInfos) {
        this.skuInfos = skuInfos;
    }

    public AlibabaOpenplatformProductModelProductSaleInfo getSaleInfo() {
        return saleInfo;
    }

    public void setSaleInfo(AlibabaOpenplatformProductModelProductSaleInfo saleInfo) {
        this.saleInfo = saleInfo;
    }

    public AlibabaOpenplatformProductModelProductShippingInfo getShippingInfo() {
        return shippingInfo;
    }

    public void setShippingInfo(AlibabaOpenplatformProductModelProductShippingInfo shippingInfo) {
        this.shippingInfo = shippingInfo;
    }

    public AlibabaOpenplatformProductModelProductInternationalTradeInfo getInternationalTradeInfo() {
        return internationalTradeInfo;
    }

    public void
        setInternationalTradeInfo(AlibabaOpenplatformProductModelProductInternationalTradeInfo internationalTradeInfo) {
        this.internationalTradeInfo = internationalTradeInfo;
    }

    public AlibabaOpenplatformProductModelProductExtendInfo[] getExtendInfos() {
        return extendInfos;
    }

    public void setExtendInfos(AlibabaOpenplatformProductModelProductExtendInfo[] extendInfos) {
        this.extendInfos = extendInfos;
    }

    public String getSupplierUserId() {
        return supplierUserId;
    }

    public void setSupplierUserId(String supplierUserId) {
        this.supplierUserId = supplierUserId;
    }

    public Integer getQualityLevel() {
        return qualityLevel;
    }

    public void setQualityLevel(Integer qualityLevel) {
        this.qualityLevel = qualityLevel;
    }

    public String getSupplierLoginId() {
        return supplierLoginId;
    }

    public void setSupplierLoginId(String supplierLoginId) {
        this.supplierLoginId = supplierLoginId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getMainVedio() {
        return mainVedio;
    }

    public void setMainVedio(String mainVedio) {
        this.mainVedio = mainVedio;
    }

    public String getProductCargoNumber() {
        return productCargoNumber;
    }

    public void setProductCargoNumber(String productCargoNumber) {
        this.productCargoNumber = productCargoNumber;
    }

    public Boolean getCrossBorderOffer() {
        return crossBorderOffer;
    }

    public void setCrossBorderOffer(Boolean crossBorderOffer) {
        this.crossBorderOffer = crossBorderOffer;
    }

    public String getReferencePrice() {
        return referencePrice;
    }

    public void setReferencePrice(String referencePrice) {
        this.referencePrice = referencePrice;
    }

    public String getCreateTime() {
        return createTime;
    }

    public Date getCreateTimeDate() {
        try {
            return DateUtil.parse(createTime);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getLastUpdateTime() {
        return lastUpdateTime;
    }

    public Date getLastUpdateTimeDate() {
        try {
            return DateUtil.parse(lastUpdateTime);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
    public void setLastUpdateTime(String lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getExpireTime() {
        return expireTime;
    }

    public Date getExpireTimeDate() {
        try {
            return DateUtil.parse(expireTime);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
    public void setExpireTime(String expireTime) {
        this.expireTime = expireTime;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public Date getModifyTimeDate() {
        try {
            return DateUtil.parse(modifyTime);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getApprovedTime() {
        return approvedTime;
    }

    public Date getApprovedTimeDate() {
        try {
            return DateUtil.parse(approvedTime);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
    public void setApprovedTime(String approvedTime) {
        this.approvedTime = approvedTime;
    }

    public String getLastRepostTime() {
        return lastRepostTime;
    }

    public Date getLastRepostTimeDate() {
        try {
            return DateUtil.parse(lastRepostTime);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
    public void setLastRepostTime(String lastRepostTime) {
        this.lastRepostTime = lastRepostTime;
    }

    public AlibabaOpenplatformProductModelProductBizGroupInfo[] getBizGroupInfos() {
        return bizGroupInfos;
    }

    public void setBizGroupInfos(AlibabaOpenplatformProductModelProductBizGroupInfo[] bizGroupInfos) {
        this.bizGroupInfos = bizGroupInfos;
    }

}
